package com.topscore.marketing.promotion.site.management.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "促销活动处理", description = "促销活动Controller")
@RestController
public class ActivityController {

    @ApiOperation(value = "获取名称", notes = "获取名称")
    @GetMapping("/name/{name}")
    public String getName(@PathVariable("name") String name) {
        return "hello, " + name;
    }
}
